package com.ruoyi.jpbi.service.impl;
import com.ruoyi.jpbi.domain.jianshe.Fomation;
import com.ruoyi.jpbi.mapper.FomationMapper;
import com.ruoyi.jpbi.mapper.OrgnMapper;
import com.ruoyi.jpbi.service.FomationService;

import com.ruoyi.jpbi.util.TreeBulid;
import org.apache.poi.ss.formula.functions.T;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FomationServiceImpl implements FomationService {
    @Autowired
    FomationMapper fomationMapper;

    @Override
    public List<Fomation> findAllFomation(Fomation fomation) {
        return fomationMapper.findAllFomation(fomation);
    }
    @Override
    public Fomation findFomationone(String id) {
        return fomationMapper.findFomationone(id);
    }

    @Override
    public int updateFomation(Fomation fomation) {
        return fomationMapper.updateFomation(fomation);
    }

    @Override
    public int insertFomation(Fomation fomation) {
        return fomationMapper.insertFomation(fomation);
    }

    @Override
    public int deleteFomation(List<String> idList) {
        return fomationMapper.deleteFomation(idList);
    }
}
